package com.xinyu.cli.pattern;

/**
 * @author: Wuxinyu
 * @date: 2024/5/19-05-19-15:53
 * @description: com.xinyu.cli.pattern
 * @version: 1.0
 */
public class TurnOnCommand implements Command {
    private Device device;

    public TurnOnCommand(Device device) {
        this.device = device;
    }

    public void execute() {
        device.turnOn();
    }
}
